/*     */ package eos.moe.dragoncore;
/*     */ 
/*     */ import java.awt.Toolkit;
/*     */ import java.awt.datatransfer.Clipboard;
/*     */ import java.awt.datatransfer.DataFlavor;
/*     */ import java.awt.datatransfer.StringSelection;
/*     */ import java.awt.datatransfer.Transferable;
/*     */ import java.util.Arrays;
/*     */ import net.minecraft.entity.player.EntityPlayer;
/*     */ import net.minecraft.util.text.translation.I18n;
/*     */ 
/*     */ 
/*     */ 
/*     */ public class jj
/*     */ {
/*     */   public static String z(String a) {
/*  17 */     StringBuilder stringBuilder = new StringBuilder();
/*  18 */     for (int i = 0; i < a.length(); i++) {
/*  19 */       int j = a.charAt(i);
/*  20 */       if (Arrays.binarySearch(g, j) < 0) {
/*  21 */         stringBuilder.append((char)j);
/*     */       }
/*     */     } 
/*  24 */     return stringBuilder.toString();
/*     */   }
/*     */   
/*     */   public static String v(String a) {
/*  28 */     StringBuilder stringBuilder = new StringBuilder(a.length());
/*  29 */     int i = 0;
/*  30 */     while (i < a.length()) {
/*  31 */       int j = a.codePointAt(i);
/*  32 */       i += Character.charCount(j);
/*  33 */       switch (Character.getType(j)) {
/*     */         case 0:
/*     */         case 16:
/*     */         case 18:
/*     */         case 19:
/*     */           continue;
/*     */       } 
/*     */       
/*  41 */       stringBuilder.append(Character.toChars(j));
/*     */     } 
/*     */ 
/*     */ 
/*     */     
/*  46 */     return stringBuilder.toString();
/*     */   }
/*     */   
/*     */   public static String v(String a, Object... arrayOfObject) {
/*  50 */     if (a == null || a.isEmpty()) {
/*  51 */       return "";
/*     */     }
/*  53 */     a = v(new Object[] { a });
/*  54 */     for (Object object : arrayOfObject) {
/*  55 */       if (object instanceof EntityPlayer) {
/*  56 */         String str = ((EntityPlayer)object).getDisplayNameString();
/*  57 */         a = a.replace("{player}", str);
/*  58 */         a = a.replace("@p", str);
/*     */       } 
/*     */     } 
/*  61 */     a = a.replace("&", Character.toChars(167)[0] + "");
/*  62 */     return a;
/*     */   }
/*     */   
/*     */   public static void v(String a) {
/*  66 */     StringSelection stringSelection = new StringSelection(a);
/*  67 */     Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
/*  68 */     clipboard.setContents(stringSelection, (a, transferable) -> {
/*     */         
/*     */         });
/*     */   }
/*     */   public static String z() {
/*  73 */     String a = "";
/*  74 */     Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard();
/*  75 */     Transferable transferable = clipboard.getContents(null);
/*  76 */     boolean bool = (transferable != null && transferable.isDataFlavorSupported(DataFlavor.stringFlavor));
/*  77 */     if (bool) {
/*     */       try {
/*  79 */         a = (String)transferable.getTransferData(DataFlavor.stringFlavor);
/*  80 */       } catch (Exception exception) {
/*  81 */         exception.printStackTrace();
/*     */       } 
/*     */     }
/*  84 */     return v(a);
/*     */   }
/*     */   
/*     */   public static String v(Object... a) {
/*  88 */     String str = "";
/*  89 */     for (Object object : a) {
/*  90 */       str = str + I18n.func_74838_a(object.toString());
/*     */     }
/*  92 */     return str;
/*     */   }
/*     */   
/*     */   public static String[] v(String a) {
/*  96 */     return a.split("\r\n|\r|\n");
/*     */   }
/*     */   
/*     */   public static String v() {
/* 100 */     return System.getProperty("line.separator");
/*     */   }
/*     */   
/*     */   public static int v(String a, int i) {
/*     */     try {
/* 105 */       return Integer.parseInt(a);
/* 106 */     } catch (NumberFormatException numberFormatException) {
/* 107 */       return i;
/*     */     } 
/*     */   }
/*     */ 
/*     */   
/* 112 */   public static final int[] g = new int[] { 34, 60, 62, 124, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 58, 42, 63, 92, 47 }; static { Arrays.sort(new int[41]); }
/*     */ 
/*     */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\jj.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */